package com.lut.edu.apm.commodityCenter.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品库
 * @author Zhao Suzhen
 * @date `2024/4/13`
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_commodity_library")
public class CommodityLibrary{
    @TableId(type = IdType.INPUT, value = "item_no")
    private String itemNo;
    @TableField(value = "item_name")
    private String itemName;
    @TableField(value = "pym")
    private String pym;
    @TableField(value = "item_size")
    private String itemSize;
    @TableField(value = "unit_no")
    private String unitNo;
    @TableField(value = "product_area")
    private String productArea;

    public boolean isEmpty(){
        if (null == this.itemNo || this.itemNo.isEmpty()){
            return true;
        }
        if (null == this.itemName || this.itemName.isEmpty()){
            return true;
        }
        return false;
    }

}
